package com.rayboo.web.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @author ray
 *
 */
@Controller
public class SimpleController {

	@RequestMapping(value = "/simple", method = RequestMethod.GET)
	public @ResponseBody String simple() {
		return "hello simple!!";
	}

	@RequestMapping(value = "/404{.*}", method = { RequestMethod.GET })
	public String page() {
		return "404";
	}

	@RequestMapping(value = "/home", method = { RequestMethod.GET })
	public String home() {
		return "home/index";
	}
	
	@RequestMapping(value = "/signin", method = { RequestMethod.GET })
	public String signin() {
		return "account/signin";
	}
	
}
